class EnvmonitoringBean {
  String createTime;

  @override
  String toString() {
    return 'EnvmonitoringBean{createTime: $createTime, equipmentId: $equipmentId, humidity: $humidity, id: $id, isHumidityAlarm: $isHumidityAlarm, isTemperatureAlarm: $isTemperatureAlarm, sensorItemId: $sensorItemId, sensorName: $sensorName, status: $status, temperature: $temperature}';
  }

  String equipmentId;
  double humidity;
  String id;
  int isHumidityAlarm;
  int isTemperatureAlarm;
  String sensorItemId;
  String sensorName;
  int status;
  double temperature;

  EnvmonitoringBean(
      {this.createTime,
        this.equipmentId,
        this.humidity,
        this.id,
        this.isHumidityAlarm,
        this.isTemperatureAlarm,
        this.sensorItemId,
        this.sensorName,
        this.status,
        this.temperature});

  EnvmonitoringBean.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'];
    equipmentId = json['equipmentId'];
    humidity = json['humidity'];
    id = json['id'];
    isHumidityAlarm = json['isHumidityAlarm'];
    isTemperatureAlarm = json['isTemperatureAlarm'];
    sensorItemId = json['sensorItemId'];
    sensorName = json['sensorName'];
    status = json['status'];
    temperature = json['temperature'];
  }

  static fromJsonList(List<dynamic> list) {
    return list.map((e) => EnvmonitoringBean.fromJson(e)).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    data['equipmentId'] = this.equipmentId;
    data['humidity'] = this.humidity;
    data['id'] = this.id;
    data['isHumidityAlarm'] = this.isHumidityAlarm;
    data['isTemperatureAlarm'] = this.isTemperatureAlarm;
    data['sensorItemId'] = this.sensorItemId;
    data['sensorName'] = this.sensorName;
    data['status'] = this.status;
    data['temperature'] = this.temperature;
    return data;
  }
}
